g05dyf

g05dyf © Numerical Algorithms Group, 2002.

Purpose

G05DYF Pseudo-random integer from uniform distribution

Synopsis

[fun_value] = g05dyf(m,n)

Description

 
 The distribution of a uniform random variable, I, is given by
 
               1       
     P(I=i)= -----     if m<=i<=n,
             n-m+1     
 
     P(I=i)=0          otherwise,
 
 assuming m<=n. 
 

Parameters

g05dyf

Required Input Arguments:

m                                     integer
n                                     integer